#!/bin/bash

# this is an sample shell script
# you will need to develop this to 
# complete the assignment for week 7
echo "============================="
echo "Test Case 1: Testing 23/23..."

tc=`java -jar Grades_v2.jar 23 23`

if [ "$tc" = "Fail" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi

echo "============================="

echo "Test Case 1: Testing -1/-1..."

tc=`java -jar Grades_v2.jar -1 -1`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi

echo "============================="

echo "Test Case 1: Testing 50/50..."

tc=`java -jar Grades_v2.jar 50 50`

if [ "$tc" = "Pass" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi

echo "============================="

echo "Test Case 1: Testing 110/110..."

tc=`java -jar Grades_v2.jar 110 110`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi

echo "============================="

echo "Test Case 1: Testing 100/100..."

tc=`java -jar Grades_v2.jar 100 100`

if [ "$tc" = "Pass with distinction" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi

echo "============================="

echo "Test Case 1: Testing 90/90..."

tc=`java -jar Grades_v2.jar 90 90`

if [ "$tc" = "Pass with distinction" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi

echo "============================="

echo "Test Case 1: Testing 90/10..."

tc=`java -jar Grades_v2.jar 90 10`

if [ "$tc" = "Pass" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi

echo "============================="

echo "Test Case 1: Testing 10/50..."

tc=`java -jar Grades_v2.jar 10 50`

if [ "$tc" = "Fail" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi

echo "============================="

echo "Test Case 1: Testing 60/60..."

tc=`java -jar Grades_v2.jar 60 60`

if [ "$tc" = "Pass" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi

echo "============================="

echo "Test Case 1: Testing -1/90..."

tc=`java -jar Grades_v2.jar -1 90`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi

echo "============================="

echo "Test Case 1: Testing 90/-1..."

tc=`java -jar Grades_v2.jar 90 -1`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi

echo "============================="

echo "Test Case 1: Testing 0/0..."

tc=`java -jar Grades_v2.jar 0 0`

if [ "$tc" = "Fail" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi

echo "============================="
